package com.sc.nft.admin.vo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.enums.ClassifyType;
import com.sc.nft.enums.CommodityType;
import com.sc.nft.enums.OrderStatusEnum;
import com.sc.nft.sup.SuperEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单表(sc_order)实体类
 *
 * @author zxy
 * @since 2022-06-02 01:04:25
 * @description 由 Mybatisplus Code Generator 创建
 */
@Data
public class OrderVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("用户Id")
    private Long userId;
    @ApiModelProperty("商品Id")
    private Long productId;

    @ApiModelProperty("商品名称")
    private String firstTitle;
    @ApiModelProperty("订单编号")
    private String orderNo;
    @ApiModelProperty("商品类型")
    private ClassifyType typeClassify;
    @ApiModelProperty("封面图片地址")
    private String imageUrl;
    @ApiModelProperty("商品价格")
    private BigDecimal productPrice;
    @ApiModelProperty("商品数量")
    private Integer count;
    @ApiModelProperty("状态")
    private OrderStatusEnum status;
    @ApiModelProperty("下单时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;
    @ApiModelProperty("订单关闭时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date closeTime;
    @ApiModelProperty("付款时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;


}